package main

import (
	"fmt"
	"os"

	"github.com/joho/godotenv"
	_ "github.com/joho/godotenv/autoload"
)

func main() {
	path, err := os.Getwd()
	if err != nil {
		fmt.Println(err)

	}
	env_path := path + "\\etc\\aliyun.env"
	fmt.Println(env_path)

	err = godotenv.Load(env_path)
	fmt.Println(err)

	s3_Endpoint := os.Getenv("Endpoint")
	s3_key := os.Getenv("AccessKeyId")
	s3_secret := os.Getenv("AccessKeySecret")
	s3_MyBucket := os.Getenv("MyBucket")
	fmt.Println(s3_Endpoint, s3_MyBucket, s3_key, s3_secret)

}
